<%@ page language="java" contentType="text/html;charset=UTF-8"%>
<%@ include file="/static/include/taglib.jsp"%>
<!DOCTYPE html >
<html>
<head>
 <meta name="viewport" content="width=device-width" />
 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />  
 <title>后台管理--通用编码列表</title>
 <link href="${ctxStatic}/layui/css/layui.css" rel="stylesheet" />
 <link href="${ctxStatic}/css/kpiui.css" rel="stylesheet" />
 <script src="${ctxStatic}/js/jquery-1.8.3.min.js?v=2.0" type="text/javascript"></script>
 <script src="${ctxStatic}/layui/layui.all.js"  type="text/javascript"></script>
 <script src="${ctxStatic}/js/sys/generalcode.js"  type="text/javascript"></script>
    <script src="${ctxStatic}/js/common.js" type="text/javascript"></script>

</head>
<body>
<div class="currentnav"><span class="tiao"></span><span class="navtitle">通用编码管理</span></div>
 
  <div class="tabregion">
 <div class="layui-tab layui-tab-brief" lay-filter="tabcontent">
  <ul class="layui-tab-title">
    <li lay-id="1"  class="layui-this">通用编码列表</li>
    <li lay-id="2">添加/编辑</li>
  </ul>
  
  <div class="layui-tab-content" style="height: 100px;">
    <div class="layui-tab-item layui-show">
      <div class="content">
	   <div id="list" class="list" lay-filter="list"></div>
	    <script type="text/html" id="operate">
         <!--<a class="layui-btn layui-btn-xs" lay-event="edit">编辑</a>
         <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="del">删除</a>-->
         <img class="btn-img" src="${ctxStatic}/images/index/btn_edit.png" lay-event="edit" alt="编辑" title="编辑">
         <img class="btn-img" src="${ctxStatic}/images/index/btn_delete.png" lay-event="del" alt="删除" title="删除">
        </script>
	 </div>
    </div>
    <div class="layui-tab-item">
     <div class="form-region">
     <form class="layui-form" id="formedit" name="formedit" action="add_generalcode" method="post" target="d41d8cd98f00b204e9800998ecf8427e">
         <iframe name="d41d8cd98f00b204e9800998ecf8427e" src="about:blank" style="display:none;"></iframe>
         <div style="width:70%;margin:0 auto">
          <table>
            <tr>
             <td class="td_right">上级编码：</td>
             <td class="td_left">
               <select name="parentid" lay-verify="required">
                <option value="0">请选择上级编码</option>
                <c:forEach var="item" items="${lst}">
                  <option value="${item.generalid}">&nbsp;${item.codename}</option>
                </c:forEach>
              </select>
             </td>
             <td class="td_right">编码：</td>
             <td class="td_left">
               <input type="text" id="generalcode" name="generalcode" lay-verify="required" autocomplete="off" placeholder="请输入编码" class="layui-input" >
             </td>
            </tr>
            <tr>
             <td class="td_right">名称：</td>
             <td class="td_left">
               <input type="text" id="codename" name="codename" lay-verify="required" autocomplete="off" placeholder="请输入名称" class="layui-input" >
             </td>
             <td class="td_right">状态：</td>
             <td class="td_left">
              <input type="radio" name="enableflag" value="0" title="禁用">
              <input type="radio" name="enableflag" value="1" title="可用" checked="">
             </td>
            </tr>
            <tr>
             <td class="td_right">描述：</td>
             <td class="td_left" colspan="3">
              <textarea class="layui-textarea" placeholder="请输入内容"  name="codedes" ></textarea>
             </td>
            </tr>
            <tr>
             <td class="td_center" colspan="4">
              <button class="button" lay-submit="" lay-filter="demo1" id="btnsave">保存</button>
		      <input type="button" value="返回列表" class="button" onclick="vGeneral.OpTab(1)"/>
             </td>
            </tr>
            
          </table>
         
        
		
		
		  
		 
		   <input type="hidden" name="generalid" value="0" >
		  </div>
    </form>
    </div>
  </div>
  </div>
  </div>
  </div>
</body>
</html>